<?php


namespace App\Models\MainDB\SystemSet;


use App\Exceptions\BasicException;
use Illuminate\Database\Eloquent\Model;

class RechargeConfig extends Model
{
    protected $table = 'ln_recharge_config';

    protected $primaryKey = 'id';

    protected $fillable = [
        'id', //主键ID
        'client_type', //客户端平台类型 1：ANDROID 2：IOS 3：H5
        'sort', //排序号
        'qipao_coin', //气泡币
        'rmb', //价格：单位：人民币，分
        'status', //状态 1；开启 2：关闭
    ];

    public $timestamps = false;

    public function add($data)
    {
        return $this->insert($data);
    }

    public function edit($id, $data)
    {
        return $this->where('id', $id)->update($data);
    }
}